{if $acao == "adicionar" || $acao == "editar"}
			<!-- Modal Evento -->
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="modalEvento">{if $acao == "adicionar"}Adicionar{else}Editar{/if} Evento</h4>
			</div>
			<form id="{if $acao == "adicionar"}adicionar{else}editar{/if}Evento" class="form-horizontal" role="form" method="" action="">
				<div class="modal-body">				
					<div class="form-group">		
						<label for="evento" class="col-sm-5 control-label">Nome do Evento</label>
  							<div class="col-xs-5">
    			 				<input type="text" class="form-control" id="event" placeholder="Nome do Evento">
  				 			</div>	
					</div>
					<div class="form-group">		
						<label for="info" class="col-sm-5 control-label">Informa&ccedil;&otilde;es</label>
  							<div class="col-xs-5">
    			 				<input type="text" class="form-control" id="info" placeholder="Informa&ccedil;&otilde;es">
  				 			</div>	
					</div>
					<div class="form-group">		
						<label for="dataInicio" class="col-sm-5 control-label">Data de In&iacute;cio</label>
  							<div class="col-xs-5">
    			 				<input type="text" class="form-control" id="dateBegin" placeholder="">    			 												
  				 			</div>	
					</div>
					<div class="form-group">		
						<label for="horaInicio" class="col-sm-5 control-label">Hor&aacute;rio de In&iacute;cio</label>
  							<div class="col-xs-5">
    			 				<input type="text" class="form-control" id="timeBegin" placeholder="">    			 				
  				 			</div>	
					</div>
					<div class="form-group">		
						<label for="dataFim" class="col-sm-5 control-label">Data do Encerramento</label>
  							<div class="col-xs-5">
    			 				<input type="text" class="form-control" id="dateEnd" placeholder="">    			 				
  				 			</div>	
					</div>
					<div class="form-group">		
						<label for="horaFim" class="col-sm-5 control-label">Hor&aacute;rio do Encerramento</label>
  							<div class="col-xs-5">  							
    			 				<input type="text" class="form-control" id="timeEnd" placeholder="">    			 				
					        </div>	
					</div>	
					<div class="form-group">	 
			   			 <label for="listaAmbientes" class="col-sm-5 control-label">Nome do Ambiente</label>
			   			 <div class="col-xs-5">
			     		 	<select class="form-control" id="environments"{if $tipoUsuario != 1} disabled="disabled"{/if}>...</select>
			   			 </div>   				    				 
					</div>
					<div class="form-group">	 
			   			 <label for="listaLocais" class="col-sm-5 control-label">Nome do Local</label>
			   			 <div class="col-xs-5">
			     		 	<select class="form-control" id="places"{if $tipoUsuario == 3} disabled="disabled"{/if}>...</select>
			   			 </div>   				    				 
					</div>
				</div>												
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
					<button type="submit" class="btn btn-success">{if $acao == "adicionar"}Adicionar{else}Editar{/if}</button>
				</div>			
			</form>
{elseif $acao == "remover"}
		<!-- Modal Remover Evento -->
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="modalRemoverEvento">Remover Evento</h4>
			</div>
			<form class="form-horizontal" role="form" method="" action="">
				<div class="modal-body">
					<p>Você deseja realmente remover os eventos selecionados?</p>
				</div>				
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
					<button type="submit" class="btn btn-danger">Remover</button>
				</div>
			</form>
			
{else}
{include file="FragmentoCabecalho.html"}
{include file="FragmentoConteudoCabecalho.html"}
{include file="FragmentoMenu.html"}

	<div class="panel panel-default">
		<div class="panel-heading"><h3>Gerenciar Eventos</h3></div>
		<div class="panel-body">
 			<div class="form-group">
 				<a data-toggle="modal" data-target="#modalAdicionar" href="index.php?controle=manteragendaeventos&acao=adicionar" class="btn btn-default btn-lg">
					<span class="glyphicon glyphicon-plus"></span>
				</a>				
				<a data-toggle="modal" id="btnEditarEvento" data-target="#modalEditar" href="index.php?controle=manteragendaeventos&acao=editar" class="btn btn-default btn-lg">
					<span class="glyphicon glyphicon-edit"></span>
				</a>				
				<a data-toggle="modal" id="btnRemoverEvento" data-target="#modalRemover" href="index.php?controle=manteragendaeventos&acao=remover" class="btn btn-default btn-lg">
					<span class="glyphicon glyphicon-remove"></span>
				</a>								
			</div>		
			<table class="table table-striped table-bordered" id="listaEventos">
				<thead>
					<tr>
						<td><strong>ID</strong></td>
						<td><strong>Nome</strong></td>
						<td width="20%"><strong>Ambiente</strong></td>
						<td width="20%"><strong>Local</strong></td>
						<td width="15%"><strong>In&iacute;cio</strong></td>
						<td width="15%"><strong>Fim</strong></td>
					</tr>
				</thead>
			</table>
		</div>
	</div>
	
	<!-- Modal Adicionar -->
	<div class="modal fade" id="modalAdicionar" tabindex="-1" role="dialog" aria-labelledby="modalEvento" aria-hidden="true">
		<div class="modal-dialog">
	    	<div class="modal-content">
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
	
	<!-- Modal Editar -->
	<div class="modal fade" id="modalEditar" tabindex="-1" role="dialog" aria-labelledby="modalEvento" aria-hidden="true">
		<div class="modal-dialog">
	    	<div class="modal-content">
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
	
	<!-- Modal Remover -->
	<div class="modal fade" id="modalRemover" tabindex="-1" role="dialog" aria-labelledby="modalRemoverEvento" aria-hidden="true">
		<div class="modal-dialog">
	    	<div class="modal-content">
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
{include file="FragmentoConteudoRodape.html"} 
{include file="FragmentoRodape.html"}
{/if}
